import time as t

def show(h,m,s):
    return '%02d:%02d:%02d' % (h,m,s)

def main():
    while True:
        t1 = t.localtime()
        h = int(t1[3])#时
        m = int(t1[4])#分
        s = int(t1[5])#秒
        print(show(h,m,s))
        t.sleep(1)
        print('\033c', end=' ')
main()
